package com.bsj.power.common.def.entity.menu;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/***
 * @description RoleMenuDO
 * @author LiJiaXin
 * @version 1.0.0
 * @time 2024/1/12 11:10
 **/
@Data
@NoArgsConstructor
@TableName(value = "tab_role_menu")
public class RoleMenu {

    /**
     * 角色id
     */
    @TableField("role_id")
    private Long roleId;

    /**
     * 权限id
     */
    @TableField("menu_id")
    private Integer menuId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public RoleMenu(Long roleId, Integer menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }
}
